﻿<Page
    RequestedTheme="Light"
    x:Class="wToggl.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    DataContext="{Binding RelativeSource={RelativeSource Self}}"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Page.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="HubSectionHeaderTemplate">
                <TextBlock Margin="0,0,0,-9.5" Text="{Binding}"/>
            </DataTemplate>
        </ResourceDictionary>
    </Page.Resources>
    
    <Grid>
        <Hub SectionHeaderClick="Hub_OnSectionHeaderClick" Header="About Toggly">
            <HubSection  x:Uid="HubSection1" Header="GENERAL INFORMATION" HeaderTemplate="{StaticResource HubSectionHeaderTemplate}">
                <DataTemplate>
                   <StackPanel Orientation="Vertical">
                        <TextBlock Style="{StaticResource BodyTextBlockStyle}" Foreground="{StaticResource PhoneAccentBrush}" Text="{Binding Version}"/>
                        <TextBlock Margin="0,0,0,10" Style="{StaticResource BodyTextBlockStyle}" Foreground="{StaticResource PhoneAccentBrush}">
                            Thank you for using Toggly!
                        </TextBlock>
                        <TextBlock Style="{StaticResource BodyTextBlockStyle}">
                            Toggly is a free and open-source Toggl client for tracking your time on the go.
                        </TextBlock>
                        <TextBlock Margin="0,0,0,20" Style="{StaticResource BodyTextBlockStyle}">
                            Based on the freely available Toggl API, it aims to provide the most comprehensive list of features possible.
                        </TextBlock>
                        <TextBlock Margin="0,0,0,20" Style="{StaticResource BodyTextBlockStyle}">
                           If you encounter a problem or have a suggestion, don't hesitate to contact us at Toggly's CodePlex home: <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="http://toggly.codeplex.com">Toggly @ CodePlex</Hyperlink>
                        </TextBlock>
                       <TextBlock Style="{StaticResource BodyTextBlockStyle}">If you like Toggly, spread the word!</TextBlock>
                       <TextBlock Text="--Mar3ek" FontSize="14" HorizontalAlignment="Right" Margin="0,20,25,0"/>
                    </StackPanel>
                </DataTemplate>
            </HubSection>

            <HubSection x:Uid="HubSection2" Header="LICENSE + THIRD PARTIES" HeaderTemplate="{StaticResource HubSectionHeaderTemplate}">
                <DataTemplate>
                    <ScrollViewer>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="" Style="{StaticResource BodyTextBlockStyle}" TextWrapping="WrapWholeWords">
                            Toggly is licensed under the Microsoft Public License (Ms-PL). Both the application and the source code are freely available to anyone, provided they respect the license terms.
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}">
                            The full text of the license can be found at CodePlex: <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="http://toggly.codeplex.com/license">Toggly License</Hyperlink>
                            </TextBlock>
                            <TextBlock Margin="0,20,0,0" Style="{StaticResource BodyTextBlockStyle}">
                            Toggly does not collect any personal details about you or your accounts. All the information you provide is used purely for communication with the Toggl servers on your behalf. You can find the full privacy statement at CodePlex: <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="https://toggly.codeplex.com/wikipage?title=Privacy%20Statement">Privacy statement</Hyperlink>
                            </TextBlock>
                            <TextBlock Margin="0,20,0,0" Style="{StaticResource BodyTextBlockStyle}">
                            Toggly uses the following third-party code and services:
                            </TextBlock>
                            <TextBlock Margin="0,10,0,0" Style="{StaticResource BodyTextBlockStyle}">
                            <Hyperlink NavigateUri="https://github.com/toggl/toggl_api_docs" Foreground="{StaticResource PhoneAccentBrush}">Toggl API</Hyperlink> - for interacting with Toggl servers
                            </TextBlock>
                            <TextBlock Margin="0,10,0,0" Style="{StaticResource BodyTextBlockStyle}">
                                <Hyperlink NavigateUri="https://github.com/jonathanpeppers/XPlatUtils" Foreground="{StaticResource PhoneAccentBrush}">XPlatUtils</Hyperlink> - cut down to ServiceContainer class. Licensed under <Hyperlink NavigateUri="https://raw.githubusercontent.com/jonathanpeppers/XPlatUtils/master/LICENSE.md" Foreground="{StaticResource PhoneAccentBrush}">Apache license 2.0</Hyperlink>
                            </TextBlock>
                            <TextBlock Margin="0,10,0,0" Style="{StaticResource BodyTextBlockStyle}">
                                <Hyperlink NavigateUri="http://oxyplot.org/" Foreground="{StaticResource PhoneAccentBrush}">OxyPlot</Hyperlink> - for charting breakdowns. Slightly modified from source code. Licensed under <Hyperlink NavigateUri="https://raw.githubusercontent.com/oxyplot/oxyplot/master/LICENSE" Foreground="{StaticResource PhoneAccentBrush}">MIT license</Hyperlink>
                            </TextBlock>
                            <TextBlock Margin="0,10,0,0" Style="{StaticResource BodyTextBlockStyle}">
                                <Hyperlink NavigateUri="http://googleanalyticssdk.codeplex.com/" Foreground="{StaticResource PhoneAccentBrush}">Google Analytics SDK for Windows 8 and Windows Phone</Hyperlink> - for analytics. Licensed under <Hyperlink NavigateUri="http://googleanalyticssdk.codeplex.com/license" Foreground="{StaticResource PhoneAccentBrush}">Ms-PL license</Hyperlink>
                            </TextBlock>
                        </StackPanel>
                    </ScrollViewer>                
                </DataTemplate>
            </HubSection>

            <HubSection IsHeaderInteractive="True" x:Uid="HubSection3" Header="SPECIAL THANKS" HeaderTemplate="{StaticResource HubSectionHeaderTemplate}">
                <DataTemplate>
                    <ScrollViewer>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" FontWeight="Bold" FontSize="30">
                                Janci
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}">
                                For helping with testing, design, and providing constructive feedback. You have him to thank for the chess timer.
                            </TextBlock>
                        </StackPanel>
                    </ScrollViewer>
                </DataTemplate>
            </HubSection>
        </Hub>
    </Grid>
</Page>
